package cn.itcast.fegin.config;


import cn.itcast.fegin.clients.fallback.UserClientFallbackFactory;
import feign.Logger;
import lombok.extern.java.Log;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


public class DefaultFeignConfiguration {

    @Bean
    public Logger.Level level(){
        return Logger.Level.BASIC;
    }

    @Bean
    public UserClientFallbackFactory userClientFallbackFactory(){
        return new UserClientFallbackFactory();
    }
}
